/*
 * @Author: caorui 778943319@qq.com
 * @Date: 2025-06-18 10:41:25
 * @LastEditors: caorui 778943319@qq.com
 * @LastEditTime: 2025-09-05 15:45:20
 * @FilePath: \notes\.vitepress\config.mjs
 * @Description:
 *
 */
import { defineConfig } from "vitepress";
import { nav, sidebar } from "./navigation.js";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  base: '/myNotes/', // 关键配置：适配 GitHub Pages 子路径
  title: "M-DOC",
  description: "项目插件使用文档",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: nav,
    logo: "/logo.svg",
    sidebar: sidebar,
    // socialLinks: [{ icon: "github", link: "https://github.com/vuejs/vitepress" }],
    docFooter: {
      prev: "上一页",
      next: "下一页",
    },
    lastUpdated: {
      text: '最后更新于'
    },
    search: {
      provider: 'local'
    },
    outline: {
      level: [2, 5],
      label: "页面导航",
    },
  },
  markdown: {
    lineNumbers: true, //行号
    image: {
      // 默认禁用；设置为 true 可为所有图片启用懒加载。
      lazyLoading: true,
    },
    //获取主题 https://shiki.style/themes
    theme: {
      light: "min-light", // 浅色主题
      dark: "monokai", // 深色主题
    },
  },
});


